package com.open.fei.service;

import com.open.fei.entities.CommonResult;
import com.open.fei.service.impl.OpenFeignFallBackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author zhaoYuFei
 */
//被调用接口的模块名称
@FeignClient(value = "fei-payment",fallback = OpenFeignFallBackImpl.class)
@Service
public interface OpenFeignService {
    //被调用接口的url
    @GetMapping("/openFeign/test")
    CommonResult<String> test();
}
